package net.contrend.system.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import net.contrend.system.form.RoleForm;

public class RoleFormMapper implements RowMapper {

    @Override
    public Object mapRow(ResultSet rs, int index) throws SQLException {
        RoleForm role = new RoleForm();
        role.setRoleId(rs.getString("roleid"));
        role.setRoleName(rs.getString("rolename"));
        role.setStatus(rs.getString("status"));
        role.setOrderNo(rs.getInt("orderno"));
        role.setRemark(rs.getString("remark"));
        return role;
    }

}
